<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
	</head>

	<body>
		<div class="pageHeader">
			<form action="LookUpBackAjax" method="post" onsubmit="return dwzSearch(this, 'dialog');">
				<input type="hidden" value="filter" name="opt">
				<div class="searchBar">
					<ul class="searchContent" style="float: left;">
						<li>
							<label>姓名:</label>
							<input class="textInput" name="name" value="" type="text">
						</li>
						<li>
							<!-- 查找带回弹出的dialog中又需要弹出查找带回dialog将会覆盖之前的dialog
								 原因是rel值源码中写死了为"_blank"，也就是任何查找带回弹出的dialog的rel都为"_blank"
								 见dwz.database.js 行:63
							 -->
							 <input name="xxx.e_name" value="" suggestFields="e_name" suggestUrl="LookUpAjax" lookupGroup="xxx" type="text" class="required" />
							<a class="btnLook" href="LookUpBackAjax" lookupGroup="xxx">查找带回中的查找带回</a>
						</li>
					</ul>
					<div style="float: left;" class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
					<div style="float: left;" class="buttonActive"><div class="buttonContent"><button id="closebtn">关闭</button></div></div>
				</div>
			</form>
		</div>
		<table class="table" width="98%">
			<thead>
				<tr>
					<th>序号</th>
					<th>姓名</th>
					<th>选择</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${xusers }" var="user" varStatus="i">
					<tr>
						<td>${i.count }</td>
						<td>${user.e_name }</td>
						<td><a class="btnSelect" href="javascript:$.bringBack({id:'${user.id }', e_name:'${user.e_name }'})" title="查找带回">选择</a></td>
					</tr>	
				</c:forEach>
			</tbody>
		</table>
		
		<script type="text/javascript">
			$(function(){
				$("#closebtn").click(function(){
					$.pdialog.closeCurrent();	
				});
			});
		
		</script>
	</body>

</html>